package com.example.order.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


// NacosConfigManager 监听配置变化
@Component
@ConfigurationProperties(prefix = "order") //配置批量绑定,在Nacos下,可以无需@RefreshScope就能实现自动刷
@Data
public class OrderProperties {

    String timeout;
    String autoConfirm;
    String dbUrl;

}


